﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using TanmiaGrp.GeneralLedger.Core;
using TanmiaGrp.GeneralLedger.Domain;

namespace TanmiaGrp.GeneralLedger.WinApp.ViewModels
{
    public class AccountBrowserViewModel : BaseBrowserViewModel<Account>
    {
        public AccountBrowserViewModel()
        {
            BusinessDomain = new AccountDomain();

            EntitySavedOrDeletedEvent = Events.AccountEntitySavedOrDeleted;
            EntityNavigationEvent = Events.AccountEntityNavigation;
            BrowserInitializedEvent = Events.AccountBrowserInitialized;
            PageNavigationEvent = Events.AccountPageNavigation;

            WireEvents();

            EditorView = ViewNames.AccountEditor;
            BrowserView = ViewNames.AccountBrowser;
        }
    }
}
